From 0b100229e3d9d658e1c05e2e75813be2d5ca2a49 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 18 Mar 2021 22:25:38 +0100 Subject: [PATCH] IMContext: add since annotations to the new APIs --- gtk/gtkimcontext.c | 4 ++++ gtk/gtkimcontext.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c index 84db9f09bd..46b418ab73 100644 --- a/gtk/gtkimcontext.c +++ b/gtk/gtkimcontext.c @@ -754,6 +754,8 @@ gtk_im_context_set_surrounding (GtkIMContext *context, * string. This function is expected to be called in response to the * GtkIMContext::retrieve_surrounding signal, and will likely have no * effect if called at other times. + * + * Since: 4.2 */ void gtk_im_context_set_surrounding_with_selection (GtkIMContext *context, @@ -853,6 +855,8 @@ gtk_im_context_get_surrounding (GtkIMContext *context, * * Returns: `TRUE` if surrounding text was provided; in this case * you must free the result stored in `text`. + * + * Since: 4.2 */ gboolean gtk_im_context_get_surrounding_with_selection (GtkIMContext *context, diff --git a/gtk/gtkimcontext.h b/gtk/gtkimcontext.h index c9558f2ba3..d4268d7e12 100644 --- a/gtk/gtkimcontext.h +++ b/gtk/gtkimcontext.h @@ -150,14 +150,14 @@ GDK_DEPRECATED_IN_4_2_FOR(gtk_im_context_get_surrounding_with_selection) gboolean gtk_im_context_get_surrounding (GtkIMContext *context, char **text, int *cursor_index); -GDK_AVAILABLE_IN_ALL +GDK_AVAILABLE_IN_4_2 void gtk_im_context_set_surrounding_with_selection (GtkIMContext *context, const char *text, int len, int cursor_index, int anchor_index); -GDK_AVAILABLE_IN_ALL +GDK_AVAILABLE_IN_4_2 gboolean gtk_im_context_get_surrounding_with_selection (GtkIMContext *context, char **text, -- 2.30.2